class SearchModel {
  String anchorCity;
  int id;
  String memberToken;
  String memberHead;
  String memberNickname;
  String anchorWorkers;
  String anchorSign;
  int follow;

  SearchModel(
      {this.anchorCity,
      this.id,
      this.memberToken,
      this.memberHead,
      this.memberNickname,
      this.anchorWorkers});

  SearchModel.fromJson(Map<String, dynamic> json) {
    anchorCity = json['anchor_city'];
    id = json['id'];
    memberToken = json['member_token'];
    memberHead = json['member_head'];
    memberNickname = json['member_nickname'];
    anchorWorkers = json['anchor_workers'];
    anchorSign = json['anchor_sign'];
    follow = json['follow'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['anchor_city'] = this.anchorCity;
    data['id'] = this.id;
    data['member_token'] = this.memberToken;
    data['member_head'] = this.memberHead;
    data['member_nickname'] = this.memberNickname;
    data['anchor_workers'] = this.anchorWorkers;
    data['anchor_sign'] = this.anchorSign;
    data['follow'] = this.follow;
    return data;
  }
}
